%!TEX encoding = IsoLatin
% -------+---------+---------+---------+---------+---------+---------+---------+
% (C) 2007 Jens von Pilgrim, Jens.vonPilgrim@FernUni-Hagen.de
%
% Version:      1.0, 2007-01-10 
% -------+---------+---------+---------+---------+---------+---------+---------+
%\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{thesis}[2007/01/09, thesis class, v.1.0]
% -------+---------+---------+---------+---------+---------+---------+---------+
\LoadClass[
	\DocInfoFinal,
	12pt,a4paper,
	halfparskip,
	twoside,		% two sided
	openany,
	nochapterprefix,
	liststotoc,	% lists to toc
	idxtotoc,		% index to toc
	bibtotoc,		% bibliography to toc
]{scrartcl}
% -------+---------+---------+---------+---------+---------+---------+---------+
% Encoding
\RequirePackage[latin1]{inputenc} % utf8, latin1
\RequirePackage{ifthen}
% -------+---RequirePackage------+---------+---------+---------+---------+---------+---------+
% Language settings
\@ifundefined{DocInfoLanguage}{\newcommand{\DocInfoLanguage}{de}}{}
\ifthenelse{\equal{\DocInfoLanguage}{de}}{ % de
	\RequirePackage[ngerman]{babel}
	\RequirePackage{ngerman}
	\selectlanguage{german}
	\RequirePackage{bibgerm}
	\bibliographystyle{alphadin}
} { % else en
	%\RequirePackage[utf8]{inputenc}
	\RequirePackage[english]{babel}
	\bibliographystyle{alpha}
}
% -------+---------+---------+---------+---------+---------+---------+---------+
% Other required packages
\RequirePackage{bbm}		% Integer sets, like \mathbbm{N}
\RequirePackage{amsfonts}	% \mathfrak a.o.
\RequirePackage{stmaryrd}	% double square bracketes \llbracket a.o.
\RequirePackage{amsthm}		% improved theorem styles
\RequirePackage{wrapfig}

\RequirePackage[pdftex,dvips]{graphicx}
\RequirePackage[
 pdfhighlight=/O, colorlinks, linkcolor=black, urlcolor=black, citecolor=black,
 breaklinks, bookmarksopen,bookmarksopenlevel=1,linktocpage
] {hyperref}

% -------+---------+---------+---------+---------+---------+---------+---------+
% Define header and footer
% Even		 Odd
% EL EC ER | OL OC OR
% Footer is defined later in reader
% -------+---------+---------+---------+---------+---------+---------+---------+
\RequirePackage{fancyhdr} 
\fancypagestyle{plain}{
	\fancyhead{}
	\fancyfoot{}
	\fancyhead[EL,OR]{\DocInfoTitle}
}
\pagestyle{plain}



\setlength{\textwidth}{16cm}	% Textwidth, i.e. right margin


% -------+---------+---------+---------+---------+---------+---------+---------+
\input{commands.sty}
% -------+---------+---------+---------+---------+---------+---------+---------+
